<?php
/*
 * @Author: 孙开源 && sunkaiyuan@namenode.cn
 * @Date: 2023-02-07 08:49:01
 * @LastEditors: 孙开源 && sunkaiyuan@namenode.cn
 * @LastEditTime: 2023-07-05 15:02:32
 * @Description: 
 * 
 */

namespace App\Exceptions;

use Exception;

class ApiException extends Exception
    {
    protected $data = "";
    public function __construct($msg, $code, $data = "")
        {
        $this->data = $data;
        $this->code = $code;
        parent::__construct($msg);
        }
    public function getData()
        {
        return $this->data;
        }
    }